package com.gnerv.author.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 博客平台-文章配置表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-18
 */
@TableName("blog_article_config")
public class ArticleConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文章业务主键
     */
    private String aId;

    /**
     * 是否允许评论
     */
    private Integer commentary;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;

    public ArticleConfig() {
    }

    public ArticleConfig(String aId) {
        this.aId = aId;
    }

    public ArticleConfig(String aId, Integer commentary) {
        this.aId = aId;
        this.commentary = commentary;
    }

    public String getaId() {
        return aId;
    }

    public void setaId(String aId) {
        this.aId = aId;
    }

    public Integer getCommentary() {
        return commentary;
    }

    public void setCommentary(Integer commentary) {
        this.commentary = commentary;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
